<?php
namespace app\admin\validate;
use think\Validate;
class AuthRule extends Validate{
    
    protected  $rule=[
        ['controller','require','控制器不为空'],
        ['action','require','方法不为空'],
        ['title',"require",'权限不为空'],
        ['parent_id','number'],
        ['listorder','number'],
    ];
    
    //场景
    protected  $scene=[
        'add'=>["controller","action","title","parent_id"],
    ];
    
}

